﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NPOI.SS.Formula.Functions;
using ZhuXingFamilys.ExportExcel.utils;

namespace ZhuXingFamilys.ListComparison.Entity
{
    public class excelEntity : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;
        private string _code;
        private string _name;
        private string _features;
        private string _company;
        private string _num;
        private string _compositePrice;
        private string _combinedPrice;

        public excelEntity()
        {
            _code = Code;
            _name = Name;
            _features = Features;
            _company = Company;
            _num = Num;
            _compositePrice = CompositePrice;
            _combinedPrice = CombinedPrice;
        }
        [ExcelColumn("项目编号")]
        public string Code
        {
            get { return _code; }
            set
            {
                _code = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Code"));
            }
        }
        [ExcelColumn("项目名称")]
        public string Name
        {
            get { return _name; }
            set
            {
                _name = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Name"));
            }
        }
        [ExcelColumn("项目特征")]
        public string Features
        {
            get { return _features; }
            set
            {
                _features = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Features"));
            }
        }
        [ExcelColumn("计量单位")]
        public string Company
        {
            get { return _company; }
            set
            {
                _company = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Company"));
            }
        }
        [ExcelColumn("工程数量")]
        public string Num
        {
            get { return _num; }
            set
            {
                _num = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Num"));
            }
        }
        [ExcelColumn("综合单价")]
        public string CompositePrice
        {
            get { return _compositePrice; }
            set
            {
                _compositePrice = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("CompositePrice"));
            }
        }
        [ExcelColumn("综合合价")]
        public string CombinedPrice
        {
            get { return _combinedPrice; }
            set
            {
                _combinedPrice = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("CombinedPrice"));
            }
        }
    }
}
